package xyz.tanxiao.links.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 客户端IP黑名单实体
 *
 * @author 万成波
 * @email 2300064869@qq.com
 * @createTime 2023-06-10 00:56:57 星期六
 */
@Getter
@Setter
@NoArgsConstructor
@TableName(value ="sl_ip_blacklist")
public class SlIpBlacklist implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Long id;

	/**
	 * 添加时间
	 */
	private LocalDateTime createTime;

	/**
	 * 客户端IP
	 */
	private String clientIp;

	/**
	 * 禁止请求触发次数
	 */
	private Integer triggerCount;


	public SlIpBlacklist(String clientIp) {
		this.clientIp = clientIp;
	}

}